package com.jt.controller;

import com.jt.mapper.UserMapper;
import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserMapper userMapper;

    //查询
//    @RequestMapping("get")
//    public User getAl(User u1){
//        return userMapper.getSelect(u1);
//    }
    //添加
//    @RequestMapping("get1")
//    public User getIn(User user1){
//        return userMapper.getInsert(user1);
//
//    }
}
